package com.gs.wzweather.controller;

import com.gs.wzweather.bo.Response;
import com.gs.wzweather.service.SiteService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping(value = "site")
public class SiteController {
    Logger logger = LoggerFactory.getLogger(this.getClass());

    @Autowired
    SiteService siteService;


    /*
    查询温州下的所有自动气象站
     */
    @RequestMapping("getSite")
    @ResponseBody
    public Response getSite() {
        return siteService.getSite();
    }
}
